package opera;

import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-07-12
 * Time: 14:29
 */
public class ShowOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书...");
        int currentSize = bookList.getUsedSized();
        for (int i = 0; i < currentSize; i++) {
            System.out.println(bookList.getBook(i));
        }
    }
}
